package com.iwe3.protal.mapper;

import com.iwe3.protal.entity.UserEntity;
import com.iwe3.protal.view.LoginView;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

@Mapper
public interface UserMapper {

    @ResultType(UserEntity.class)
    @Select("select * from t_user where account = #{lv.loginName} and password = #{lv.password} ")
    UserEntity login(@Param("lv") LoginView view);
}
